package com.qf.mapper;

import com.qf.pojo.Books;
import com.qf.pojo.Permission;
import com.qf.pojo.req.BookType;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface PermissionMapper {
    List<Permission> getAllPermissionsByUsernae(String username);
    Permission findPermissionBypid(int pid);
    int add(Permission permission);
    int update(Permission permission);
    int delete(int pid);
    List<Permission> getAllPermission();
}
